package com.example.lotterysystem.dao.dataobject;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description: 中奖信息
 * User: Spider-Man
 * Date: 2025-09-16
 * Time: 18:10
 */

/**
 * 唯一索引: 活动id + 中奖者id + 奖品id
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WinningRecordDO extends BaseDO{
    private Long activityId; //活动id
    private String activityName;//活动名称
    private Long prizeId;//奖品Id
    private String prizeName;//奖品名称
    private String prizeTier;//奖品等级
    private Long winnerId;//中奖者id
    private String winnerName;//中奖者姓名
    private String winnerEmail;//中奖者邮箱
    private Encrypt winnerPhoneNumber;//中奖者电话
    private Date winningTime;//中奖时间

}
